package com.andreas.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;


/**
 * @Author andreaszhou
 * @ClassName Member
 * @Description TODO
 * @date 2021/1/20 18:22
 * @Version 1.0
 */
@TableName("member")
public class Member {
    @TableId(type = IdType.AUTO)
    @TableField("member_id")
    private int memberId;
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
    @TableField("salt")
    private int salt;
    @TableField("create_time")
    private Date createTime;
    @TableField("nickname")
    private String nickName;

    public Member(int memberId, String username, String password, int salt, Date createTime, String nickName) {
        this.memberId = memberId;
        this.username = username;
        this.password = password;
        this.salt = salt;
        this.createTime = createTime;
        this.nickName = nickName;
    }

    public Member() {
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getSalt() {
        return salt;
    }

    public void setSalt(int salt) {
        this.salt = salt;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
}
